package com.zhibang.sinocare.common.result;

import lombok.Getter;

@Getter
public enum ResultCode {

    //定义
    SUCCESS(0,"成功"),
    FAIL(201,"失败"),
    VALUE_NULL(300,"值为空"),
    PARAM_NULL(301,"参数为空,处理异常"),
    SIGN_ERROR(400,"签名错误"),
    NO_LOGIN(400,"未登录"),
    SYS_ERROR(500,"系统异常");
    //属性
    private Integer code;
    private String message;
    private ResultCode(Integer code,String message){
        this.code = code;
        this.message =message;
    }
}
